package com.nwpu.server.search.service.impl;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nwpu.server.common.response.*;

import com.nwpu.server.search.dao.GeneTableDao;
import com.nwpu.server.search.entity.GeneTableEntity;
import com.nwpu.server.search.service.GeneTableService;


@Component("geneTableService")
public class GeneTableServiceImpl extends ServiceImpl<GeneTableDao, GeneTableEntity> implements GeneTableService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GeneTableEntity> page = this.page(
                new Query<GeneTableEntity>().getPage(params),
                new QueryWrapper<GeneTableEntity>()
        );

        return new PageUtils(page);
    }

}